from django.db import models

# Create your models here.
class Record(models.Model):
    nickname = models.CharField(verbose_name='昵称',null=True, blank=True,max_length=32)
    sex = models.CharField(verbose_name='性别',null=True, blank=True,max_length=32)
    age = models.IntegerField(verbose_name='年龄',null=True,blank=True,default=0)
    income_monthly = models.IntegerField(verbose_name='月薪',null=True,blank=True,default=0)
    income_year=models.CharField(verbose_name='年终奖',null=True,blank=True,max_length=32,default=0)
    experience = models.CharField(verbose_name='工作年限',null=True,blank=True,max_length=32)
    degree = models.CharField(verbose_name='学历', null=True,blank=True,max_length=32)
    speciality = models.CharField(verbose_name='专业',null=True, blank=True,max_length=32)
    city= models.CharField(verbose_name='工作城市',null=True, blank=True,max_length=32)
    level =models.CharField(verbose_name='岗位级别',null=True, blank=True,max_length=32)
    onjob=models.CharField(verbose_name='在职/离职',null=True, blank=True,max_length=32)
    unemployment_time = models.CharField(verbose_name='失业时间',blank=True,null=True, max_length=32)
    create_datetime = models.DateTimeField(auto_now_add=True, null=True, blank=True, help_text="创建时间",
                                          verbose_name="创建时间")

    class Meta:
        ordering = ('-create_datetime',)
        db_table = 'api_record'